<?php
echo '<div class="groupmenu">';
    echo '<h4>'.$parent1['title'].'</h4>';
    echo '<dl>';
    foreach($groupmenu as $key =>$item)
    {
        $items = $this->MPage->getRelatedArticles($item['page_id']);
    if($item['segment'] == '#')
        echo '<dt><a>'.$item['title'].'</a></dt>';
    else echo '<dt>'.anchor('page/'.$item['segment'],$item['title']).'</dt>';            
        foreach($items as $key =>$article)
        {
            echo '<dd>'.anchor('page/'.$article['segment'],$article['title']).'</dd>';
        }
    }
     echo '</dl>';
    
echo '</div>';    
?>